package cn.kgc.service;

import cn.kgc.entity.Provider;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * Created by Administrator on 2020/3/10.
 */
public interface ProviderService {
    PageInfo<Provider> queryByCodeAndName
            (Provider provider, Integer pageNum, Integer pageSize);
    Provider queryById(Integer id);
    //删除指定供应商(先删除订单信息，再删除供应商)
    Integer delete(Integer id);

    List<Provider> queryByCode(String code);

    //查询所有供应商
    List<Provider> queryAll();


    Integer save(Provider provider);

    Integer update(Provider provider);
}
